<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class SmsCode extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::dropIfExists('sms_code');
        Schema::create('sms_code', function (Blueprint $table){
            $table->increments('id');
            $table->bigInteger("phone")->comment("手机号");
            $table->integer('code')->comment("验证码");
            $table->tinyInteger("status")->comment("状态");
            $table->tinyInteger('type')->comment("认证用途");
            $table->integer('create_time')->comment("创建时间");
            $table->integer('update_time')->comment("更新时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
